package com.dlnu.service;

import com.dlnu.bean.Selection;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SelectionService {

    @Transactional
    int create(Selection selection);

    int delete(String ids);

    int delete(Integer id);

    int update(Selection selection);

    int updateSelective(Selection selection);

    PageInfo<Selection> query(Selection selection);

    List<Selection> queryByClazzId(Integer clazzId);

    Selection detail(Integer id);

    int count(Selection selection);
}
